﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CSharpLearn
{
   class person
    {
        private String name;//姓名 
        private int age;//年龄

        public person()
        {
            Console.WriteLine("这里是空参构造器");
        }

        public person(string name, int age)
        {
            this.name = name;
            this.age = age;
        }

        public void eat(String name)
        {
            Console.WriteLine(name + "吃饭");
        }
    }
}
